<template>
<div id="main">
  <!-- 头部组件-->
       <Header :title="title"></Header>
  <keep-alive>
    <span>test</span>
    <router-view></router-view>
  </keep-alive>
  <!-- 尾部组件-->
        <TabBar></TabBar>
</div>
</template>

<script>
import Header from './components/Header';
import TabBar from './components/TabBar';
export default {
  name: 'App',
  components: {
    Header,
    TabBar
  },
  computed: {
    title: function(){
      return this.$store.state.title;
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
